package org.jackysoft.service;

import java.util.Collection;

import org.jackysoft.data.IDataProvider;
import org.jackysoft.entity.AcegiRole;
import org.jackysoft.entity.TreeNode;
import org.jackysoft.entity.User;
import org.springframework.dao.DataAccessException;

public interface SecurityRoleService extends IDataProvider<String,AcegiRole> {
	
	Collection<AcegiRole> gets(User user) throws DataAccessException;

	Collection<AcegiRole> getsByUrl(String url)	throws DataAccessException;

	Collection<AcegiRole> gets(TreeNode node)	throws DataAccessException;
	
	void apply(AcegiRole role);
	
	int[] appendUsers(AcegiRole bean,Collection<User> users) throws DataAccessException;	
	
	void notifyDone(String id);
}
